﻿package mortal.game.view.palyer
{
    import Message.Public.*;
    import com.mui.utils.*;
    import mortal.component.window.*;
    import mortal.game.cache.*;
    import mortal.game.view.playerSystem.view.*;

    public class PlayerInfoModule extends PlayerPanelBase
    {
        private var _attributeInfoPart:PlayerAttributeInfoPart;
        private var _equipmentPart:PlayerModelPanel;

        public function PlayerInfoModule(param1:Window)
        {
            super(param1);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._equipmentPart = UICompomentPool.getUICompoment(PlayerModelPanel, _window);
            this._equipmentPart.x = 16;
            this._equipmentPart.y = 63;
            this.addChild(this._equipmentPart);
            this._attributeInfoPart = UICompomentPool.getUICompoment(PlayerAttributeInfoPart);
            this._attributeInfoPart.x = 504;
            this._attributeInfoPart.y = 37;
            _window.contentTopOf3DSprite.addChild(this._attributeInfoPart);
            this.updateAllInfo(Cache.instance.role.fightAttribute);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._attributeInfoPart.dispose(param1);
            this._equipmentPart.dispose(param1);
            this._attributeInfoPart = null;
            this._equipmentPart = null;
            super.disposeImpl(param1);
            return;
        }// end function

        public function updateAttr() : void
        {
            return;
        }// end function

        public function updateAllInfo(param1:SFightAttribute) : void
        {
            if (param1)
            {
                this._attributeInfoPart.updateAllInfo(param1);
            }
            this._equipmentPart.updataAllInfo();
            return;
        }// end function

        public function updateLife() : void
        {
            this._attributeInfoPart.updateLife();
            return;
        }// end function

        public function updateMana() : void
        {
            this._attributeInfoPart.updateMana();
            return;
        }// end function

        public function updateExp(param1:int) : void
        {
            this._attributeInfoPart.updateExp(param1);
            return;
        }// end function

        public function updateLevel(param1:int) : void
        {
            this._attributeInfoPart.updateLevel();
            return;
        }// end function

        public function updateEquipByType(param1:int) : void
        {
            this._equipmentPart.updateEquipByType(param1);
            return;
        }// end function

        public function updateHalidomEquipByType(param1:int) : void
        {
            this._equipmentPart.updateHalidomEquipByType(param1);
            return;
        }// end function

        public function updateAllEquip() : void
        {
            this._equipmentPart.updateAllEquip();
            return;
        }// end function

        public function updateComBat() : void
        {
            this._attributeInfoPart.updateComBat();
            return;
        }// end function

        public function updateVip() : void
        {
            this._equipmentPart.updateVip();
            return;
        }// end function

        public function updataNmae() : void
        {
            this._equipmentPart.updataNmae();
            return;
        }// end function

        public function updateGuild() : void
        {
            this._equipmentPart.updateGuild();
            return;
        }// end function

        public function updateInfo() : void
        {
            this._equipmentPart.updatePlayerInfo();
            return;
        }// end function

        public function updateTitle() : void
        {
            this._equipmentPart.updateTitle();
            return;
        }// end function

        public function updateMedal() : void
        {
            this._equipmentPart.updateMedal();
            return;
        }// end function

    }
}
